package com.lac.component.test.factory.factory2;

/**
 * @author xiaokuixiao
 * date2025/4/9 14:13
 */
public class Consumer {
    // 抽象工厂模式
    public static void main(String[] args) {
        Car car1 = new BenChiFactory().getCar();
        Car car2 = new BMWFactory().getCar();
        car1.name();
        car2.name();
    }
}